package com.zt.teacher.service.impl;

import com.zt.common.pojo.StudentVx;
import com.zt.teacher.dao.StudentVxDao;
import com.zt.teacher.service.StudentVxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2022-01-24
 */
@Service
@Transactional
public class StudentVxServiceImpl implements StudentVxService {

    @Autowired
    private StudentVxDao studentVxDao;

    @Override
    public StudentVx getStudentByStuId(String studentId) {
        return studentVxDao.selectStudentByStuId(studentId);
    }

    @Override
    public List<StudentVx> getStudentsByStuId(List<String> studentIds) {
        return studentVxDao.getStudentsByStuId(studentIds);
    }
}
